how to make empty field when clicked on button